<template>
  <div class="container">
    <div class="content">
      <h2 class="title">输入部件编号</h2>
      <p class="instruction">请先在手机系统设置中连接设备的WIFI</p>
      <div class="input-container">
        <input type="text" v-model="partNumber" placeholder="例如：2240 4239 1030 0032">
      </div>
    </div>
    <button class="confirm-button" @click="confirm">确定</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      partNumber: ''
    }
  },
  methods: {
    confirm() {
      // 在这里添加确认逻辑，例如提交部件编号
      console.log('部件编号:', this.partNumber)
	  uni.navigateTo({
	  	url: '/pages/index/Tab'
	  });
    }
  }
}
</script>

<style>
.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 95vh;
  padding: 20px;
}

.content {
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 24px;
  margin-bottom: 10px;
}

.instruction {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.input-container {
  margin-top: 20px;
  width: 90%;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.confirm-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  width: 100%;
  font-size: 18px;
}
</style>
